﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LocalizationTest
{
  class PositionMeasurement1D : Measurement
  {
    double position;

    public double Position
    {
      get { return position; }
      set { position = value; }
    }

    public PositionMeasurement1D(double position, Sensor sensor)
    {
      this.position = position;
      this.sensor = sensor;
    }

    public override double GetValueAsDouble()
    {
      return position;
    }

    public override double GetDifference(Measurement other)
    {
      return this.position - ((PositionMeasurement1D)other).position;
    }

    public override Measurement Parse(string str, Experiment experiment)
    {
      throw new Exception("The method or operation is not implemented.");
    }

    public override string ToString()
    {
      throw new Exception("The method or operation is not implemented.");
    }

  }
}
